<?php
require_once 'TVB/Auth/Auth.php';
require_once 'TVB/ObjectRecord/all.php';
require_once 'TVB/PWORKS/mvc/action/BaseAction.class.php'; 
require_once 'TVB/pms/pdes/common/AppConfiguration.class.php' ;
require_once 'TVB/pms/pdes/common/model/model.class.php';
require_once 'TVB/pms/pdes/common/util/CommonUtils.class.php';
require_once 'TVB/pms/pdes/common/util/XmlToArray.class.php';
require_once 'TVB/pms/pdes/common/util/ProofreadSend.php';
require_once 'TVB/pms/pdes/common/util/NewProofreadSend.php';
require_once 'TVB/pms/pdes/common/util/P_ProofreadSend.php';
require_once 'TVB/pms/pdes/common/util/ChangeLogTools.class.php';
require_once 'TVB/pms/pdes/common/util/P_Unpublished.class.php';
require_once 'TVB/pms/pdes/common/util/ParseCountryCode.class.php';
require_once 'TVB/pms/pdes/common/util/CloneGetData.class.php';
require_once 'TVB/pms/pdes/common/util/CloneProgramme.class.php';
require_once 'TVB/Message/MessageHelper.php';
require_once 'TVB/PWORKS/message/Messager.class.php';
require_once 'TVB/pms/pdes/common/error.inc';
require_once 'TVB/pms/pdes/common/global_data.php';


//-- autoload function{{{
function __autoload($class){
	try{
	if(file_exists("/opt/php/lib/php/TVB/pms/pdes/model/{$class}.php")){
		require "TVB/pms/pdes/model/{$class}.php";
	}else{
		throw new Exception("No such file: /opt/php/lib/php/TVB/pms/pdes/model/{$class}.php");
	}
	}catch(Exception $e){
		error_log(print_r($e,1));
    }
     
}


//-- init action{{{
Model::$dbo['w'] = CommonUtils::getDbConn(1);
Model::$dbo['r'] = CommonUtils::getDbConn();
//}}}
?>
